name := "offsync"

version := "0.1"

scalaVersion := "2.9.1"

publishMavenStyle := true

publishArtifact in Test := false

libraryDependencies ++= Seq(
   "org.specs2" %% "specs2" % "1.8.2" % "test",
   "junit" % "junit" % "4.8"
   // with Scala 2.8.x (specs2 1.5 is the latest version for scala 2.8.x)
   // "org.specs2" %% "specs2" % "1.5" % "test",
   // "org.specs2" %% "specs2-scalaz-core" % "5.1-SNAPSHOT" % "test"
)

// Read here for optional dependencies: 
// http://etorreborre.github.com/specs2/guide/org.specs2.guide.Runners.html#Dependencies

resolvers ++= Seq(
   "snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
   "releases"  at "http://oss.sonatype.org/content/repositories/releases")

publishTo <<= version { (v: String) =>
  val nexus = "https://oss.sonatype.org/"
  if (v.trim.endsWith("SNAPSHOT")) 
    Some("snapshots" at nexus + "content/repositories/snapshots") 
  else
    Some("releases"  at nexus + "service/local/staging/deploy/maven2")
}

pomIncludeRepository := { _ => false }

pomExtra := (
  <url>http://jsuereth.com/scala-arm</url>
  <licenses>
    <license>
      <name>GPL v3</name>
      <url>http://www.gnu.org/copyleft/gpl.html</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <url>http://offsync.googlecode.com/svn</url>
    <connection>scm:svn:http://offsync.googlecode.com/svn</connection>
  </scm>
  <developers>
    <developer>
      <id>newhoggy</id>
      <name>John Ky</name>
      <url>http://timesprint.com</url>
    </developer>
  </developers>)

